package com.leyou.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("auth-service")
public interface AuthClient {
    /**
     * 给微服务生成token的处理器
     */
    @GetMapping("/authorization")
    public String authorize(@RequestParam("id") Long id,
                            @RequestParam("serviceName") String serviceName);
}
